<script setup lang="ts" name="PreView">
import { compListConfig } from '@/components/layout/config'

const currentComponents = compListConfig.map((item:any) => item.comp);
</script>

<template>
  <div class="preview">
    <div class="header">
      <HeaderComp/>
    </div>
    <div class="content">
      <div class="item item6" v-for="(item, index) in compListConfig" :key="index">
        <component :is="currentComponents[index]" v-model="compListConfig[index]"></component>
      </div>
    </div>
  </div>
</template>
<style scoped lang="scss">
@import '@/style/preview.scss';
</style>
